﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WhatCatch.Core
{
    public interface DataContainerBase
    {
        ///// <summary>
        ///// 判断列表url是否存在
        ///// </summary>
        ///// <param name="url"></param>
        ///// <returns></returns>
        //bool IsExistInListUrl(string url);
        /// <summary>
        /// 添加列表url
        /// </summary>
        /// <param name="url"></param>
        void AddListUrl(string url);
        ///// <summary>
        ///// 插入列表任务
        ///// </summary>
        ///// <param name="url"></param>
        //void EnqueueTask(string url);
        /// <summary>
        /// 获取一个列表任务
        /// </summary>
        /// <returns></returns>
        string GetOneTask();


        ///// <summary>
        ///// 判断明细url是否存在
        ///// </summary>
        ///// <param name="url"></param>
        ///// <returns></returns>
        //bool IsExistInDetailUrl(string url);
        /// <summary>
        /// 添加明细url
        /// </summary>
        /// <param name="url"></param>

        void AddDetailUrl(string url);
        ///// <summary>
        ///// 插入明细任务
        ///// </summary>
        ///// <param name="url"></param>
        //void EnqueueDetailTask(string url);
        /// <summary>
        /// 获取一个明细任务
        /// </summary>
        /// <returns></returns>
        string GetOneDetailTask();
    }
}
